using UnityEngine;

namespace BCW.GameTypes.SkyBlock
{
	public class SkyBlockBlocator : MonoBehaviour
	{
		public GameObject red;

		public GameObject blue;

		private void Update()
		{
			if (TDMController.myTeam != 0)
			{
				if (SkyBlockController.instance.GetRoadState(TDMController.myTeam) && SkyBlockController.instance.GetRoadState(TDMController.enemyTeam))
				{
					red.SetActive(false);
					blue.SetActive(false);
				}
				else if (SkyBlockController.instance.GetRoadState(TDMController.myTeam))
				{
					red.SetActive(false);
					blue.SetActive(true);
				}
				else
				{
					red.SetActive(true);
					blue.SetActive(false);
				}
			}
		}
	}
}
